package com.project.weather.service;

import java.util.List;
import java.util.Map;

import com.project.weather.common.AResultCode;
import com.project.weather.common.PageBean;
import com.project.weather.common.ResultMap;
import com.project.weather.pojo.CityBean;

/**
 *<p>Title:CityService.java</p>
 *<p>Description:城市表Service</p>
 *@author xxx
 *@version 1.0
 *@Automatically generate by Coder in 2022-02-13 20:49
 */
public interface CityService{
    /**
	*<b>Summary: 保存数据</b>
	* insert
	* @param bean
	* @return
	*/
	public ResultMap<AResultCode, CityBean> insert(CityBean bean);

	/**
    *<b>Summary: 更新数据</b>
    * update
    * @param bean
	* @return
    */
	public ResultMap<AResultCode, CityBean> update(CityBean bean);

	/**
    *<b>Summary: 删除数据</b>
    * delete
    * @param id
	* @return
    */
	public ResultMap<AResultCode, CityBean> delete(String id);

	/**
    *<b>Summary: 分页查询列表数据</b>
    * pageList
    * @param pb
	* @return
    */
	public ResultMap<AResultCode, PageBean<CityBean>> pageList(PageBean<CityBean> pb);

	/**
    *<b>Summary: 查询列表数据</b>
    * list
    * @param bean
	* @return
    */
	public ResultMap<AResultCode, List<CityBean>> list(CityBean bean);

	/**
    *<b>Summary: 根据Id查询数据</b>
    * get
    * @param id
	* @return
    */
	public ResultMap<AResultCode, CityBean> get(String id);

	/**
	 * 查询所有城市数据接口
	 * @param bean
	 * @return
	 */
	ResultMap<AResultCode, List<Map>> listAllCity(CityBean bean);
}